var status = -1;
var selectionLog = [];

function start(d, c, b) {
    if (status == 0 && d == 0) {
        qm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            qm.forceCompleteQuest(32827);
            qm.forceCompleteQuest(32806);
            qm.sendNormalTalk_Bottom("教务室贴上这张就行了。大功告成。", 57, 1530502, false, true);
            qm.gainExp(Math.pow(qm.getLevel(), 3))
        } else {
            if (status === a++) {
                qm.dispose();
                qm.warp(330002304, 1)
            }
        }
    }
}

function end(d, c, b) {
    if (status == 0 && d == 0) {
        qm.dispose();
        return
    }(d == 1) ? status++ : status--;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status == a++) {
            qm.sendNormalTalk_Bottom("你搜集到了可以作为证据的照片？让我看看。", 37, 1530100, false, true)
        } else {
            if (status === a++) {
                qm.sendNormalTalk_Bottom("哦吼，拍得真不错。乍一看，还真像是两个人在亲密交谈呢？你，在这方面还挺有才的嘛？", 37, 1530100, true, true);
                qm.dispose()
            }
        }
    }
};